package cn.afterturn.gen.core.model;

import java.io.Serializable;
import java.util.List;

/**
 * 数据库表属性
 *
 * @author JueYue
 * @date 2014年12月21日
 */
public class GenBeanEntity implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 表注释
     */
    private String tableComment;
    /**
     * 表名
     */
    private String tableName;
    /**
     * 实体名
     */
    private String entityName;

    /**
     * 表名 第一个字母小写
     */
    private String prefixTableName;

    /**
     * 实体主键名 首字母大写
     */
    private String propertyPrimaryKeyName;

    /**
     * 实体主键名 驼峰命名
     */
    private String humpPropertyPrimaryKeyName;

    /**
     * 数据库主键名
     */
    private String tablePrimaryKeyName;

    /**
     * 表字段
     */
    private List<GenFieldEntity> fields;

    public List<GenFieldEntity> getFields() {
        return fields;
    }

    public void setFields(List<GenFieldEntity> fields) {
        this.fields = fields;
    }

    public String getEntityName() {
        return entityName;
    }
    public void setEntityName(String entityName) {
        this.entityName = entityName;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }


    public String getPropertyPrimaryKeyName() {
        return propertyPrimaryKeyName;
    }

    public void setPropertyPrimaryKeyName(String propertyPrimaryKeyName) {
        this.propertyPrimaryKeyName = propertyPrimaryKeyName;
    }

    public String getHumpPropertyPrimaryKeyName() {
        return humpPropertyPrimaryKeyName;
    }

    public void setHumpPropertyPrimaryKeyName(String humpPropertyPrimaryKeyName) {
        this.humpPropertyPrimaryKeyName = humpPropertyPrimaryKeyName;
    }


    public String getTablePrimaryKeyName() {
        return tablePrimaryKeyName;
    }

    public void setTablePrimaryKeyName(String tablePrimaryKeyName) {
        this.tablePrimaryKeyName = tablePrimaryKeyName;
    }



    public String getPrefixTableName() {
        return prefixTableName;
    }

    public void setPrefixTableName(String prefixTableName) {
        this.prefixTableName = prefixTableName;
    }

    public String getTableComment() {
        return tableComment;
    }

    public void setTableComment(String tableComment) {
        this.tableComment = tableComment;
    }

}
